package com.humble.humbleojserviceclient.service;



import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.humble.humbleojmodel.model.entity.Question;
import com.humble.humbleojmodel.model.entity.QuestionSubmit;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serializable;

/**
* @author humble
* @description 针对表【question(题目表)】的数据库操作Service
* @createDate 2025-02-25 12:19:44
*/
@FeignClient(name = "humbleoj-backend-question-service",path = "/api/question/inner")
public interface QuestionFeignClient{

    @GetMapping("/get/id")
    Question getById(@RequestParam("id") Serializable id);

    @PostMapping("/update")
    boolean update(@RequestBody Question question);

    @GetMapping("/submit/get/id")
    QuestionSubmit getSubmitById(@RequestParam("id") Serializable id);

    @PostMapping("/submit/update")
    boolean updateSubmit(@RequestBody QuestionSubmit questionSubmit);
}
